package com.tomehay.termprojectmanage_server.mapper;
import java.util.Collection;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


import com.tomehay.termprojectmanage_server.pojo.Model.Code;

/**
* @author 79919
* @description 针对表【code】的数据库操作Mapper
* @createDate 2023-06-23 13:55:07
* @Entity generator.domain.Code
*/
@Mapper
public interface CodeMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Code record);

    int insertSelective(Code record);

    Code selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Code record);

    int updateByPrimaryKey(Code record);

    List<Code> queryAllById(@Param("id") Integer id);

    List<Code> queryAll();

    int insertBatch(@Param("codeCollection") Collection<Code> codeCollection);

    int count();

    List<Code> listAllByGno(@Param("gno") Integer gno);
}
